package com.itheima.chapter10.atom1;
//synchronized同步代码块解决原子性
public class Demo {
    public static void main(String[] args) {
        MyAtomThread atom =new MyAtomThread();
        for (int i = 0; i < 100; i++) {
            new Thread(atom).start();
        }
    }
}
